package com.CST.entity.ys;

import com.CST.common.BaseEntity;
import com.CST.common.StaticVariable;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Size;

/**
 * <p>
 *
 * </p>
 *
 * @author qtx
 * @since 2023-04-20
 */
@Getter
@Setter
@TableName("YS_DEPARTMENT")
@ApiModel(value = "YsDepartment对象", description = "预算部门管理")
public class YsDepartment extends BaseEntity {

    private static final long serialVersionUID = 1L;

    
    @TableField(exist = false)
    private String deptId;

    @ApiModelProperty("部门名称")
    @ExcelProperty("部门名称")
    @TableField("department_name")
    private String departmentName;

    @ApiModelProperty("部门编码")
    @ExcelProperty("部门编码")
    @TableField("department_code")
    private String departmentCode;

    @ApiModelProperty("是否参与业务预算")
    @ExcelIgnore
    @TableField("status")
    private Boolean status;

    @ApiModelProperty("是否参与管理预算")
    @ExcelIgnore
    @TableField("manage_status")
    private Boolean manageStatus;

    @Size(max = StaticVariable.STRING_MAX_SIZE, message = StaticVariable.STRING_SIZ_ERROR)
    @ApiModelProperty("备注")
    @ExcelProperty("备注")
    @TableField("remark")
    private String remark;

    @ExcelIgnore
    @JsonIgnore
    @TableField("num")
    private Integer num;
}
